package com.wxxymaker.edu.model.entity;

import io.github.biezhi.anima.Model;
import io.github.biezhi.anima.annotation.Ignore;
import io.github.biezhi.anima.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @AUTHOR soft
 * @DATE 2018/9/4 16:19
 * @DESCRIBE 用户token表
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "user_token")
public class UserToken extends Model {
    private Long   id;

    private String token;      // token值

    private Integer userId;     // token所属用户
    @Ignore
    private User   user;
    private String createTime; // token创建时间
    private String endTime;    // token失效时间 默认3天后
}